package main

import (
	"github.com/gin-gonic/gin"
	"lesson/api"
	"lesson/config"
	"lesson/inits"
)

func main() {

	config.InitViper()
	inits.InitMysql()
	inits.InitRabbitMq()
	r := gin.Default()

	api.Use(r)
	r.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
}
